package cn.itsource.api.fallback;

import cn.itsource.api.RuleStartRemoteApi;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RuleStartRemoteApiBackFactory implements FallbackFactory<RuleStartRemoteApi> {
    @Override
    public RuleStartRemoteApi create(Throwable cause) {
        return new RuleStartRemoteApi() {

            @Override
            public JSONResult valuation(String mileage) {
                return null;
            }

        };
    }
}
